using UnityEngine;
using QFramework;

namespace ProjectSurvival
{
	public partial class CollectableArea : ViewController
	{
		void Start()
		{
			Global.CollectableArea.RegisterWithInitValue(areaRate =>
			{
				var area = GetComponent<CircleCollider2D>();
				area.radius = Global.CollectableArea.Value;
			}).UnRegisterWhenGameObjectDestroyed(gameObject);
		}
	}
}
